import os


def getfiles():
    for name in os.listdir("F:/forworkuse/forworkgituse/pythoncoduse/Python-100-Days/Day01-15/code/Day02"):
        if name.endswith('.py'):
            yield name[:-3]

            
class builduse():
    
    def useit(self):
        
        for page in getfiles():
            print(page)

print(getfiles())
            
buiuse = builduse()

buiuse.useit()

